package com.commerceE.dao.impl;

import java.util.List;

import com.commerceE.common.dao.GenericIBatisDaoImpl;
import com.commerceE.dao.OrderDao;
import com.commerceE.domain.Order;

public class OrderDaoImpl extends GenericIBatisDaoImpl<Order> implements OrderDao{
	
	@Override
	public String getNAMESPACE() {
		return Order.class.getName();
	}
	
    public List<Order> getOrderListByUserId(Long userId){
		return getSqlSession().selectList(getNAMESPACE() + ".getOrderListByUserId", userId);
    }

}
